# 获取当前日期时间并格式化为YYYYMMDD
$version = Get-Date -Format "yyyyMMdd"

# 输出构建开始信息
Write-Host "build start..."

# 执行Docker构建命令
docker build -f ./docker/Dockerfile --build-arg BUILD_TIME=$version -t "datree/water_robot_web:$version" .

# 输出构建成功信息
Write-Host "build success datree/water_robot_web:$version"